package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * 操作日志对象 sys_biz_operation_log
 *
 * @author lixinchen
 * @date 2024-01-15
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_operation_log")
public class SysBizOperationLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 操作员
     */
    @Excel(name = "操作员")
    private String operator;

    /**
     * IP地址
     */
    @Excel(name = "IP地址")
    private String ipAddress;

    /**
     * 操作项目(1.会员充值 2.添加会员)
     */
    @Excel(name = "操作项目")
    private Integer operationItem;

    /**
     * 操作详情
     */
    @Excel(name = "操作详情")
    private String operationDetails;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;

}
